<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div{
            width: 300px;
            height: 300px;
            background:red;
        }
    </style>
    <script src="jquery-3.2.0.min.js"></script>
    <script>
        $(function(){
            $('div').click(
                    function(){
                        $('div').html('嘻嘻嘻')
                    }
            )
        })
    </script>
</head>
<body>
<div>哈哈哈哈</div>
</body>
</html>